package demo08;

import java.util.ArrayList;
import java.util.List;

import org.omg.CORBA.INTERNAL;

public class Player {
	private String name;
	private List<String> list;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<String> getList() {
		return list;
	}
	public void setList(List<String> list) {
		this.list = list;
	}
	public Player(String name, List<String> list) {
		super();
		this.name = name;
		this.list = list;
	}
	public Player(String name) {
		this.name=name;
		this.list=new ArrayList<String>();
	}
	public Player() {
	}
	@Override
	public String toString() {
		return name+":"+list;
	}
	
}
